package com.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TTeacher entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_teacher", schema = "")
public class TTeacher implements java.io.Serializable {

	// Fields

	private String teacherId;
	private String id;
	private String teacherName;
	private String department;
	private String title;
	private String organization;
	private String majorName;
	private Date bornDate;
	private String sex;
	private String office;
	private Date beginTime;
	private Date leaveTime;
	private String isSpecial;
	private String remarks;
	private Integer identityCard;
	private Integer homeTel;
	private Integer phone;
	private String address;

	// Constructors

	/** default constructor */
	public TTeacher() {
	}

	/** minimal constructor */
	public TTeacher(String teacherId) {
		this.teacherId = teacherId;
	}

	/** full constructor */
	public TTeacher(String teacherId, String id, String teacherName, String department, String title, String organization, String majorName, Date bornDate, String sex, String office, Date beginTime, Date leaveTime, String isSpecial, String remarks, Integer identityCard, Integer homeTel, Integer phone, String address) {
		this.teacherId = teacherId;
		this.id = id;
		this.teacherName = teacherName;
		this.department = department;
		this.title = title;
		this.organization = organization;
		this.majorName = majorName;
		this.bornDate = bornDate;
		this.sex = sex;
		this.office = office;
		this.beginTime = beginTime;
		this.leaveTime = leaveTime;
		this.isSpecial = isSpecial;
		this.remarks = remarks;
		this.identityCard = identityCard;
		this.homeTel = homeTel;
		this.phone = phone;
		this.address = address;
	}

	// Property accessors
	@Column(name = "teacherID", unique = true, nullable = false)
	public String getTeacherId() {
		return this.teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	@Id
	@Column(name = "id")
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "teacherName")
	public String getTeacherName() {
		return this.teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	@Column(name = "department")
	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name = "title")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "organization")
	public String getOrganization() {
		return this.organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	@Column(name = "majorName")
	public String getMajorName() {
		return this.majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "bornDate", length = 10)
	public Date getBornDate() {
		return this.bornDate;
	}

	public void setBornDate(Date bornDate) {
		this.bornDate = bornDate;
	}

	@Column(name = "sex")
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "office")
	public String getOffice() {
		return this.office;
	}

	public void setOffice(String office) {
		this.office = office;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "beginTime", length = 10)
	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "leaveTime", length = 10)
	public Date getLeaveTime() {
		return this.leaveTime;
	}

	public void setLeaveTime(Date leaveTime) {
		this.leaveTime = leaveTime;
	}

	@Column(name = "isSpecial")
	public String getIsSpecial() {
		return this.isSpecial;
	}

	public void setIsSpecial(String isSpecial) {
		this.isSpecial = isSpecial;
	}

	@Column(name = "remarks")
	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Column(name = "identityCard")
	public Integer getIdentityCard() {
		return this.identityCard;
	}

	public void setIdentityCard(Integer identityCard) {
		this.identityCard = identityCard;
	}

	@Column(name = "homeTel")
	public Integer getHomeTel() {
		return this.homeTel;
	}

	public void setHomeTel(Integer homeTel) {
		this.homeTel = homeTel;
	}

	@Column(name = "phone")
	public Integer getPhone() {
		return this.phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	@Column(name = "address")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}